package com.three.lab.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.three.lab.R;
import com.three.lab.bean.OrderMsgBean;

import org.jetbrains.annotations.NotNull;

import java.util.List;

public class OfficeMsgAdapter extends BaseQuickAdapter<OrderMsgBean, BaseViewHolder> {

    public OfficeMsgAdapter(@Nullable List<OrderMsgBean> data) {
        super(R.layout.item_list_offic_msg,data);
    }

    public OfficeMsgAdapter() {
        super(R.layout.item_list_offic_msg);
    }

    @Override
    protected void convert(@NonNull @NotNull BaseViewHolder helper, OrderMsgBean item) {
        helper.setText(R.id.tv_time,item.getTime())
                .setText(R.id.tv_content,item.getConent())
        .addOnClickListener(R.id.ll_detail);
    }
}
